package com.jz.cost.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by WISE on 2021/12/27.
 */
@Data
public class CostAddVo {
    private Integer id;
    @NotBlank(message = "法人编码不能为空")
    private String legalPersonCode;
    @NotBlank(message = "备件编码不能为空")
    private String materialCode;
    @NotNull(message = "货币编码不能为空")
    private Integer currencyCode;
    @NotNull(message = "成本价不能为空")
    private Double price;
    @NotNull(message = "含税类型不能为空")
    private Integer taxType;
    @NotNull(message = "价格分类不能为空")
    private Integer priceType;
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String remark;
}
